'''
@Author: your name
@Date: 2020-02-03 19:39:18
@LastEditTime : 2020-02-04 21:06:06
@LastEditors  : Please set LastEditors
@Description: In User Settings Edit
@FilePath: \pyqt5\demo_029_事件机制.py
'''
from PyQt5.Qt import *


class MyApp(QApplication):
    pass

class MyBtn(QPushButton):
    pass
        

class Window(QWidget):
    def __init__(self):
        super().__init__()
        self.setWindowTitle('demo_029_事件机制')
        self.resize(500,500)
        self.setup_ui()

    def setup_ui(self):
        print('ff')


if __name__ == '__main__':
    import sys
    app = MyApp(sys.argv)
    
    win = Window()
    win.show()
    sys.exit(app.exec_())

